package com.tool.imp.ap;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import com.tool.imp.BillVO;
import com.tool.imp.EntryVO;
import com.tool.imp.FieldVO;

/**
 * 测试使用Example
 * 
 * @author Evan.Hu
 * 
 */
public class ApEntryVO extends EntryVO {
	private static Map<String, FieldVO> fieldMap;

	public ApEntryVO() {
		super();
	}

	public String getTableName() {
		return "T_AR_OtherBillEntry";
	}

	public String getPKField() {
		return "id";
	}

	public Map<String, FieldVO> getFieldMap() {
		return fieldMap;
	}

	static {
		fieldMap = new HashMap<String, FieldVO>();

		// 注册数据字段
		fieldMap.put("id", new FieldVO("id", String.class, "FID"));
		fieldMap.put("parent", new FieldVO("parent", BillVO.class, "FParentID"));
		fieldMap.put("seq", new FieldVO("seq", Integer.class, "FSeq"));
		fieldMap.put("material", new FieldVO("material", String.class, "FMaterial"));
		fieldMap.put("amount", new FieldVO("amount", BigDecimal.class, "FAmount"));

	}

	// ****************************字段set/get方法
	public String getID() {
		return getString("id");
	}

	public void setID(String id) {
		setString("id", id);
	}

	public ApBillVO getParent() {
		return (ApBillVO) get("parent");
	}

	public void setParent(ApBillVO parent) {
		put("parent", parent);
	}

	public String getMaterial() {
		return getString("material");
	}

	public void setMaterial(String material) {
		setString("material", material);
	}

	public Integer getSeq() {
		return getInteger("seq");
	}

	public void setSeq(Integer seq) {
		setInteger("seq", seq);
	}

	public BigDecimal getAmount() {
		return getBigDecimal("amount");
	}

	public void setAmount(BigDecimal amount) {
		setBigDecimal("amount", amount);
	}

}
